package com.itheima.tcp.Demo3;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
    public static void main(String[] args) throws IOException {
        ServerSocket socket = new ServerSocket(10000);
        while (true) {
            Socket accept = socket.accept();
            Client c = new Client(accept);
            new Thread(c).start();
        }
    }
}
